<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>数组</title>
		<script>
			var a=new Array(5);
			var b=["apple","banana","patrot","grape"];
			a[0]="吴瑞";
			a[1]="刘琦";
			a[100]="许昕";
			a.push("马彩云","杨巧巧","张帆");
			console.log(a.length);
			alert(a.join("%"));
			a.length=5;
			alert("数组删除了，剩下5个");
			alert(a.join("#"));
			a["clsName"]="java72";
			a["zuishuai"]="赵吉山";
			for(var i=0;i<a.length;i++)
				console.log(a[i]);
			for(var k in a)
				console.log(k+"="+a[k]);
			// alert(a["clsName"]);
			// ///delete a["clsName"];
			// alert(a["clsName"]);
			// alert(a.length);//?
		</script>
	</head>
	<body>
	</body>
</html>
